package chixing.day06;

public class User {
    private String userName;
    private int points;
    public User() {
        this.userName = "w";
        this.points = 0;
    }
    public User(String userName, int points) {
        this.userName = userName;
        this.points = 0;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public int getPoints() {
        return points;
    }

    public void setPoints(int points) {
        this.points = points;
    }
    public void printUser() {
        System.out.println("用户名：" + userName + "，积分：" + points);
    }
}
